using System;
using UnityEngine;


public class TeamNetHandler : Singleton< TeamNetHandler > 
{
	
	void Awake ()
	{
		if ( mInstance == null )
		{
			mInstance = this;
			initHandler();
		}
		
	}
	
	public void initHandler()
	{
//		GameSocketManager.instance.regeditMsg( (int)GameNetMessage.MsgType._MSG_RECV_JOIN_TEAM , onRecvJoinTeam , typeof( GameNetMessage.RECV_MSG_JOIN_TEAM ) );
//		GameSocketManager.instance.regeditMsg( (int)GameNetMessage.MsgType._MSG_RECV_LEAVE_TEAM , onRecvLeaveTeam , typeof( GameNetMessage.RECV_MSG_LEAVE_TEAM ) );
//		GameSocketManager.instance.regeditMsg( (int)GameNetMessage.MsgType._MSG_RECV_SYN_TEAM , onRecvSynTeam , typeof( GameNetMessage.RECV_MSG_SYN_TEAM ) );
//		GameSocketManager.instance.regeditMsg( (int)GameNetMessage.MsgType._MSG_RECV_SYN_MAP_TEAM , onRecvSynTeamMap , typeof( GameNetMessage.RECV_MSG_SYN_MAP_TEAM ) );

	}



	public TeamNetHandler ()
	{

	}


	public void onRecvJoinTeam( GameNetMessage.NetMsgInterface head )
	{
		GameNetMessage.RECV_MSG_JOIN_TEAM msg = (GameNetMessage.RECV_MSG_JOIN_TEAM)head;
	}

	
	public void onRecvLeaveTeam( GameNetMessage.NetMsgInterface head )
	{
		GameNetMessage.RECV_MSG_LEAVE_TEAM msg = (GameNetMessage.RECV_MSG_LEAVE_TEAM)head;
	}


	public void onRecvSynTeam( GameNetMessage.NetMsgInterface head )
	{
		GameNetMessage.RECV_MSG_SYN_TEAM msg = (GameNetMessage.RECV_MSG_SYN_TEAM)head;
	}

	public void onRecvSynTeamMap( GameNetMessage.NetMsgInterface head )
	{
		GameNetMessage.RECV_MSG_SYN_MAP_TEAM msg = (GameNetMessage.RECV_MSG_SYN_MAP_TEAM)head;
	}



}

